package com.wf.userManagement.service.local;

import com.wf.apicommons.entity.userManagement.UserInformation;
import com.wf.apicommons.utils.CommonResult;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 用户相关Service
 */
public interface UserRelatedService {
    /**
     * 用户注册
     * @param userInfo
     * @return
     */
    CommonResult<String> userRegister (UserInformation userInfo);


    /**
     * 获取验证码
     * @param phoneNumber
     * @return
     */
    CommonResult<String> getVerificationCode (String phoneNumber);

    /**
     * 用户登录
     * @param userInfo
     * @return
     */
    CommonResult<String> userLogin (UserInformation userInfo);


    /**
     * 获取用户详细信息
     * @param userID
     * @return
     */
    CommonResult<UserInformation> getUserDetailedMsg(String userID);

    /**
     * 根据昵称查询用户列表
     * @param nickName
     * @return
     */
     CommonResult<List<UserInformation>>  queryUserListService(String nickName);
}
